﻿<%@ Page Title="Add Property" Language="C#" MasterPageFile="~/CDBPage.master" AutoEventWireup="true"
    CodeFile="addProperty.aspx.cs" Inherits="addProperty" %>

<%@ Register Src="controls/userNavigation.ascx" TagName="userNavigation" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" src="js/jquery.MultiFile.js"></script>
    <section class="content">
    <div class="inner-billboard">
        <h3>Add Property</h3>
        <blockquote></blockquote>
    </div>
        <div style="min-height: 300px;">
                    <p></p>
                    <uc1:userNavigation ID="userNavigation1" runat="server" />
                    <div style="float: left;">
                        <table>
                            <tr>
                                <td colspan="2">
                                    <% if (Session["myAccount"] != null)
                                       { %>
                                    <span id="spMessage" runat="server" style="color:Red;"><%=Session["myAccount"] %></span>
                                    &nbsp;</td>
                                    <% } Session["myAccount"] = null;%>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;&nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    Property Name
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPropertyName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address 1</td>
                                <td>
                                    <asp:TextBox ID="txtAddress1" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address 2</td>
                                <td>
                                    <asp:TextBox ID="txtAddress2" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    City
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Area in Sq.Mt
                                </td>
                                <td>
                                    <asp:TextBox ID="txtArea" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Price
                                </td>
                                <td style="margin-left: 80px">
                                    <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="revPrice" runat="server" ErrorMessage="*" 
                                        ControlToValidate="txtPrice" 
                                        ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" ForeColor="Red"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Luxury
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLuxury" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Transaction
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTransaction" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Possession
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPossession" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Ownership
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOwnership" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Year Built
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPropertyAge" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Notes
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Features
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFeatures" runat="server" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Status
                                </td>
                                <td>
                                    <asp:TextBox ID="txtStatus" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Report
                                </td>
                                <td>
                                    <asp:TextBox ID="txtReport" TextMode="MultiLine" Columns="5" Rows="5" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Pictures
                                </td>
                                <td>
                                    <asp:FileUpload ID="fuProperty" runat="server" class="multi" />
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    Issue
                                </td>
                                <td>
                                    <asp:TextBox ID="txtIssues" TextMode="MultiLine" Columns="5" Rows="5" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="submit" 
                                        onclick="btnSubmit_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="clear"></div>
            </div>
    
</section>
</asp:Content>
